package hichecker.tools.event.abstract_event;

/**
 * This interface defines the notify method as callback for receiving events
 * after registering to an {@link Observable}.
 * 
 * @author Sebastian Bader
 * @author Martin Dyrba
 * 
 * @param <E>
 *            the event (type) that will be received
 */
public interface Observer<E extends Event> {

	/**
	 * Call back method that will receive the events.
	 * 
	 * @param sender
	 *            the {@link Observable} that generated this event
	 * @param event
	 *            the event
	 */
	public void notify(Observable<? extends E> sender, E event);
}
